package cn.tang.tframe.sdm.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by tanghc on 17/1/18.
 */
@Data
public class CommonTree<E extends Serializable> implements Serializable {

	private static final long serialVersionUID = -1814386602814823064L;
	private E e;
	private List<E> children;
	public CommonTree(E e){
		this.e = e;
		children = new ArrayList<>();
	}
	public void addChild(E c){
		children.add(c);
	}
}
